-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix self mention, resolve handle #1903
Conversation
* origin: Fix root sibling context issue (#1902)
src/state/queries/handle.ts
Outdated
// cache in memory forever, page reload clears | ||
staleTime: Infinity, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should invalidate the cache when the user changes their handle, and might want to manually update the cache any time we use the get profile hook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small note
src/state/queries/handle.ts
Outdated
// cache in memory forever, page reload clears | ||
staleTime: Infinity, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should invalidate the cache when the user changes their handle, and might want to manually update the cache any time we use the get profile hook
Replaces logic with new patterns, adds a couple new utils for getting a
handle
byhandleOrDid
. Prev handling was synchronous, new is async, so I added a disabled state to this button.